import pickle
from atmpackage.person import Person

obj = Person("离心","142431199777777777", "13999999999", 1111)

with open("user.txt",mode="wb") as fp:
    pickle.dump({"142431": obj}, fp)

with open("userid.txt", mode="wb") as fp:
    pickle.dump({"111":142431}, fp)